package org.dut.book.Service;

import org.dut.book.Mapper.BookMapper;
import org.dut.book.Mapper.UserMapper;
import org.dut.book.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    //查询用户信息是否存在
    public UserInfo getUserInfoByNameAndPassword(String userName, String password) {
        return userMapper.selectUserInfoByNameAndPassword(userName, password);
    };
}
